import java.io.Serializable;

/**
 * This class is the Assignment controller
 */
public class Assignment implements Serializable {
	/**
	* Variables that will get the input from the GUI
	*/
	private String courseID;
	private Integer assNumber;
	private String name;
	private String subDate;
	private Integer size;
	private byte[] f;
	private String teacherID;
	
	/**
	 * 
	 * @param cID is for course id data
	 * 
	 * @param num is for assNumber number data
	 * 
	 * @param n is for name  data
	 * 
	 * @param tID is for teacherID  data
	 * 
	 * @param date is for subDate  data
	 * 
	 * @param [] b  is array of bits that decode the n variable 
	 * 
	 * @param s is for size  data
	*/
	public Assignment(String cID, Integer num,String n, String tID,  String date, byte[] b, int s){
		courseID = cID;
		assNumber = num;
		name = n;
		subDate = date;
		f = new byte[s];
		for (int i=0; i<s; i++)
			f[i] = b[i];
		size = s;
		teacherID = tID;
	}
	public Integer getSize() {
		return size;
	}
	/**
	 * @param size the size to set
	 */
	public void setSize(Integer size) {
		this.size = size;
	}
	/**
	 * @return the teacherID
	 */
	public String getTeacherID() {
		return teacherID;
	}
	/**
	 * @param teacherID the teacherID to set
	 */
	public void setTeacherID(String teacherID) {
		this.teacherID = teacherID;
	}
	/**
	 * TODO Auto-generated constructor stub
	 */
	public Assignment() {
	}
	/**
	 * @return the courseID
	 */
	public String getCourseID() {
		return courseID;
	}
	/**
	 * @param courseID the courseID to set
	 */
	public void setCourseID(String courseID) {
		this.courseID = courseID;
	}
	/**
	 * @return the assNumber
	 */
	public Integer getAssNumber() {
		return assNumber;
	}
	/**
	 * @param assNumber the assNumber to set
	 */
	public void setAssNumber(Integer assNumber) {
		this.assNumber = assNumber;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the f
	 */
	public byte[] getF() {
		return f;
	}
	/**
	 * @param f the f to set
	 */
	public void setF(byte[] f) {
		this.f = f;
	}
	/**
	 * @return the subDate
	 */
	public String getSubDate() {
		return subDate;
	}
	/**
	 * @param subDate the subDate to set
	 */
	public void setSubDate(String subDate) {
		this.subDate = subDate;
	}

}
